package org.exez.modules.visitor.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.exez.modules.visitor.entity.PushRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import org.exez.modules.visitor.vo.PushRecordVO;

import java.util.List;

/**
 * @Description: 访客推送记录
 * @Author: exez-boot
 * @Date:   2020-06-28
 * @Version: V1.0
 */
public interface IPushRecordService extends IService<PushRecord> {


    /**
     * 分页查找访客授权日志
     * @param page
     * @param queryWrapper
     * @return
     */
    Page<PushRecordVO> listPushRecord(Page<PushRecord> page, LambdaQueryWrapper<PushRecord> queryWrapper);

    /**
     * 查找所有未推送成功的记录
     * @return
     */
    List<PushRecord> listPushRecordByStatusAll();
}
